import * as apis from '../apis'
import * as types from './types'

export const setUser = ({ commit }, user) => {
	apis.getUser().then(({data}) => {
		user = data.result
	commit(types.SET_USER, user) 
	})
	
}

export const addTest = ({ commit }, test) => {
	commit(types.SET_TEST, test)
}
